package com.project.bean;

/**
 * 用户实体类
 */
public class UserBean {
    /**用户id*/
    private int id;
    /**用户账户*/
    private String account;
    /**用户密码*/
    private String pwd = "678";
    /**用户真实姓名*/
    private String name;
    /**用户等级*/
    private String rank;

    public UserBean() {
    }

    public UserBean(String account,String name, String rank) {
        this.account = account;
        this.name = name;
        this.rank = rank;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", pwd='" + pwd + '\'' +
                ", name='" + name + '\'' +
                ", rank='" + rank + '\'' +
                '}'+"\n";
    }
}
